"use client"

import { createContext, useContext } from "react";

type ContextType = {
  state: string;
}

const DEFAULT_CONTEXT: ContextType = {
  state: 'normal'
}

const GlobalContext = createContext<ContextType>(DEFAULT_CONTEXT)

export const GlobalContextProvider = ({children}:{
  children: React.ReactNode;
}) => {
  return (
    <GlobalContext.Provider value={DEFAULT_CONTEXT}>
      {children}
    </GlobalContext.Provider>
  )
}
export const useGlobalContext = () => useContext(GlobalContext);
